package com.spps;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class RegExp {
    public static String replace(String regex, CharSequence input, String replacement) {
        Pattern pattern = Pattern.compile(regex);
        Matcher matcher = pattern.matcher(input);
        return matcher.replaceAll(replacement);
    }
}